package com.agile.leetcode.tomcat.servlet;

import com.agile.leetcode.tomcat.abstractservlet.MyHttpServlet;
import com.agile.leetcode.tomcat.anotation.Address;
import com.agile.leetcode.tomcat.netty.NettyRequest;
import com.agile.leetcode.tomcat.netty.NettyResponse;
import com.agile.leetcode.tomcat.nio.MyNioRequest;
import com.agile.leetcode.tomcat.nio.MyNioResponse;
import com.agile.leetcode.tomcat.normalio.MyRequest;
import com.agile.leetcode.tomcat.normalio.MyResponse;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/8/9 18:15
 */
@Address("/netty")
public class NettyServlet extends MyHttpServlet {
    @Override
    public void doGet(NettyRequest request, NettyResponse response) {
        response.write("netty czk");
    }

    @Override
    public void doPost(NettyRequest request, NettyResponse response) {
        doGet(request,response);
    }

    @Override
    public void doGet(MyRequest request, MyResponse response) {

    }

    @Override
    public void doGet(MyNioRequest request, MyNioResponse response) {

    }

    @Override
    public void doPost(MyRequest request, MyResponse response) {

    }

    @Override
    public void doPost(MyNioRequest request, MyNioResponse response) {

    }
}
